package string;

/**
 *
 */
public class TrimDemo消除两边空格 {
    public static void main(String[] args) {
        String str = "      hello world       ";
        str = str.trim();
        System.out.println(str);
    }
}
